package cn.jboa.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.jboa.base.BaseDaoImpl;
import cn.jboa.dao.IStudentDAO;
import cn.jboa.entity.Student;
@Repository
public class StudentDAOImpl extends BaseDaoImpl<Student> implements IStudentDAO{

	@Override
	public List<Student> getAllStudetnById(int gid) {
		List<Student> list = getSession().createQuery("from Student s where s.gradeid=? order by sid")//
				.setParameter(0, gid).list();
		return list;
	}

}
